package com.sky.mapper.admin;


import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.enumeration.OperationType;
import com.sky.pojo.Setmeal;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetMealMapper {
    @AutoFill(value = OperationType.INSERT)
    void insertSetMeal(Setmeal setmeal);

    Page<SetmealVO> setMealPage(SetmealPageQueryDTO setmealPageQueryDTO);

    void deleteSetMeal(List<Integer> ids);

    SetmealVO querySetMealId(Long setmealId);
    @AutoFill(value = OperationType.UPDATE)
    void updateSetMeal();

    void ActivateAndForbiddenSetMeal(Integer status, Integer id);
    /**
     * 查询套餐总览
     * */
    Integer countStatus(Integer paid);
}
